﻿using System;
using System.Collections.Generic;
using System.Text;
using KKCai.App.Model;

namespace KKCai.Web
{
    public class ManagerPage : KKCai.Utils.Web.PageBase
    {
        public UserInfo CurrentUser
        {
            get {
                return Session["manager"] as UserInfo; 
            }
            set {
                Session["manager"] = value;
            }
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (CurrentUser == null)
            {
                Response.Redirect("~/admin/login.aspx");
            }
        }
    }
}
